package com.learn.hibernatevalidator.chapter01;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author: liyf
 * @create: 2025-01-23 22:00
 **/
@Data
public class User {

    @NotNull
    @Size(min = 3, max = 20)
    private String username;
}
